package com.example.klinemqflink.model;

import lombok.Data;

@Data
public class Kline {     // Trading symbol (e.g., BTC/USDT)
    private String channel;
    private String instrument;
    private String symbol;
    private String frequency;
    private long startTime;
    private long endTime;
    private double open;
    private double high;
    private double low;
    private double close;
    private String startTimeStr;
    private String endTimeStr;
    private double volume;
    // Total volume

    public Kline() {
    }

    public Kline(String symbol, long start, long end, double open, double high, double low, double close, double volume) {
        this.symbol = symbol;
        this.startTime = start;
        this.endTime = end;
        this.open = open;
        this.high=high;
        this.low = low;
        this.close = close;
        this.volume = volume;
    }
}
